package com.guoheng.safe.sys.dto.basicinfo;

import com.guoheng.safe.common.enums.ControlTypeEnum;
import com.guoheng.safe.common.enums.StorageTankTypeEnum;
import com.guoheng.safe.common.validator.ValidEnum;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;

@Data
public class ControlDataUpdateDTO {
    @PositiveOrZero
    @NotNull
    private Integer id;

    @ValidEnum(enumClass = StorageTankTypeEnum.class)
    private Integer deviceType;

    @ValidEnum(enumClass = ControlTypeEnum.class)
    private Integer controlType;
}